package com.htl.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 当我们在使用【二级缓存】时，
 * 所缓存的类一定要实现java.io.Serializable接口，
 * 这种就可以使用序列化方式来保存对象。
 */
public class User implements Serializable {
    private Integer id;
    private String username;
    private Date birthday;
    private String sex;
    private String address;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

//    @Override
//    public String toString() {
//        return "User{" +
//                "id=" + id +
//                ", username='" + username + '\'' +
//                ", birthday=" + birthday +
//                ", sex='" + sex + '\'' +
//                ", address='" + address + '\'' +
//                '}';
//    }

}
